<h1><?php echo $this->title;
?></h1>

<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="" method="post">
				<label>Nhập mã học viên :</label>
				<?php echo $this->formText('mahocvien',null,null);?>
				<div><?php echo $this->formSubmit('submit','Xem thời khóa biểu');?></div>
				<?php if(count($this->tkb) != 0)
	{?>
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left"><a>Mã học viên</a></th>
					<th class="table-header-repeat line-left"><a>Tên lớp</a></th>
					<th class="table-header-repeat line-left"><a>Họ tên học viên</a></th>
					<th class="table-header-repeat line-left"><a>Năm sinh</a></th>
					<th class="table-header-repeat line-left"><a>Ngày thi</a></th>
					<th class="table-header-repeat line-left"><a>Buổi học</a></th>
					<th class="table-header-repeat line-left"><a>Ca học</a></th>
					<th class="table-header-options line-left"><a>Tùy chọn</a></th>
				</tr>
<?php
	
		foreach($this->tkb as $tkb)
		{
		$buoihoc = $tkb->getTenbuoihoc();
		$cahoc = $tkb->getTencahoc();
		$khoahocs = $tkb->getKhoahoc();
		foreach($khoahocs as $khoahoc)
		{	
			$lophoc = $khoahoc->getLophoc();
			$tenlop = $lophoc->getTenlop();
		}
		$hocvien = $tkb->getHocvien();
		
		$id = $hocvien->getId();
		$tenhocvien = $hocvien->getTenhocvien();
		$namsinh = $hocvien->getNamsinh();
		$ngaydangky = $hocvien->getDate();
		
		$linkEdit = $this->baseUrl('/admin/hocvien/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/hocvien/xoa/id/'. $id);
?>
				<tr>
					<td><?php echo $id?></td>
					<td><?php echo $tenlop?></td>
					<td><?php echo $tenhocvien?></td>
					<td><?php echo $namsinh?></td>
					<td><?php echo $ngaydangky?></td>
					<td><?php echo $buoihoc?></td>
					<td><?php echo $cahoc?></td>
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip"></a>
					</td>
				</tr>
		<?php 
		}
		}?>			
			</table>
		
				<!--  end product-table................................... -->
				</form>